#ifndef _APPS_BDESKTOP_CIMAGEICON_H_
#define _APPS_BDESKTOP_CIMAGEICON_H_

#include "auto.h"
#include <buola/io/curl.h>
#include <buola/gl.h>
#include "cdockicon.h"

namespace buola { namespace bdesktop {

class CImageIcon : public CDockIcon
{
public:
    CImageIcon(PImage pImage);
    virtual ~CImageIcon();

    virtual double GetRelativeWidth();
    virtual void Draw(const CRect &pRect,double pOpacity);

private:
    CGLTexture *GetTexture();

private:
    PImage mImage;
    CGLTexture *mTexture;
};

/*namespace bdesktop*/ } /*namespace buola*/ }

#endif
